package com.huitone.gddw.utils;

import java.io.Serializable;

import org.apache.poi.ss.formula.functions.T;


@SuppressWarnings("hiding")
public class MonitoringResult<T> implements Serializable {
	/**
	 *用于存放返回的信息 
	 *@author lipengfei 
	 */
	private static final long serialVersionUID = 1L;
	private int status = 1;
	private String msg;
	private T data;
	
	private int pageNo = 1;		 //当前页数
	private int pageSize = -1;	 //每页条数
	private	int totalCount;   //总条数
	private int	pageCount; 	//总页数
	
	public int getPageCount() {
		pageCount= totalCount/pageSize;
		if (totalCount % pageSize > 0) {
			pageCount++;
		}
		return pageCount;
	}
	public void setPageCount(int pageCount) {
		this.pageCount = pageCount;
	}
	public static long getSerialversionuid() {
		return serialVersionUID;
	}
	public int getPageNo() {
		return pageNo;
	}
	public void setPageNo(int pageNo) {
		this.pageNo = pageNo;
	}
	public int getPageSize() {
		return pageSize;
	}
	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}
	public int getTotalCount() {
		return totalCount;
	}
	public void setTotalCount(int totalCount) {
		this.totalCount = totalCount;
	}
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
	public String getMsg() {
		return msg;
	}
	public void setMsg(String msg) {
		this.msg = msg;
	}
	
	
	public T getData() {
		return data;
	}
	public void setData(T data) {
		this.data = data;
	}
	@Override
	public String toString() {
		return "NoteResult [status=" + status + ", msg=" + msg + ", data=" + data + "]";
	}
}
